﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="EditGroup.aspx.vb" Inherits="Training.EditGroup" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Training - Training:: Edit Group</title>
<link rel="Stylesheet" type="text/css" media="screen" href="../css/adminStyle.css" />
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div class="ctr">
        <h2>Edit Group</h2>
        <p>Edit information for GROUPNAME</p>
        <asp:Label ID="lblReturn" runat="server" Text="" CssClass="Alert"></asp:Label>
        
        <div style="width:700px;text-align:left;margin:0 auto;" class="text">
        
            <div class="row">
                <div class="half">
                    Group Name: 
                    <asp:RequiredFieldValidator ID="rfGroup" runat="server" ErrorMessage="required" 
                        ControlToValidate="tbGroup" CssClass="small" Display="Dynamic"></asp:RequiredFieldValidator><br />
                    <asp:TextBox ID="tbGroup" CssClass="formfield" Width="200px" 
                        runat="server"></asp:TextBox>
                </div>
                <div class="half">
                    Login Name: <br />
                    <asp:TextBox ID="tbLogin" CssClass="formfield" Width="200px" 
                        runat="server" Enabled="false"></asp:TextBox>
                </div>
                <div class="clr"></div>
            </div>
            
            <div class="row">
                <asp:CheckBox ID="cbEmail" Text="Check to change email" 
                        runat="server" AutoPostBack="true" CausesValidation="false" />
                <div class="half">
                    Email: 
                    <asp:RequiredFieldValidator ID="rfEmail" runat="server" ErrorMessage="required" 
                        ControlToValidate="tbEmail" Enabled="false" CssClass="small" Display="Dynamic"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="reEmail" runat="server" 
                        ControlToValidate="tbEmail" CssClass="small" Display="Dynamic" 
                        ErrorMessage="invalid email" Enabled="false" 
                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                    <br />
                    <asp:TextBox ID="tbEmail"  Enabled="false" CssClass="formfield" Width="200px" 
                        runat="server"></asp:TextBox>
                </div>
                <div class="half">
                    Confirm Email: 
                    <asp:RequiredFieldValidator Enabled="false" ID="rfEConf" runat="server" ErrorMessage="required" 
                        ControlToValidate="tbEConf" CssClass="small" Display="Dynamic"></asp:RequiredFieldValidator>
                    <asp:CompareValidator Enabled="false" ID="cvEmail" runat="server" ControlToCompare="tbEmail" 
                        ControlToValidate="tbEConf" CssClass="small" Display="Dynamic" 
                        ErrorMessage="email does not match"></asp:CompareValidator>
                    <br />
                    <asp:TextBox ID="tbEConf" Enabled="false" CssClass="formfield" Width="200px" 
                        runat="server"></asp:TextBox>
                </div>
                <div class="clr"></div>
            </div>
            
            <div class="row">
                <asp:CheckBox ID="cbPassword" Text="Check to change password" 
                        runat="server" AutoPostBack="true" CausesValidation="false" />
                <div class="half">
                    Password*: 
                    <asp:RequiredFieldValidator ID="rfPass" runat="server" ErrorMessage="required" 
                        ControlToValidate="tbPass" Enabled="false" CssClass="small" Display="Dynamic"></asp:RequiredFieldValidator><br />
                    
                    <asp:TextBox ID="tbPass" CssClass="formfield" Width="200px" 
                        runat="server" TextMode="Password" Enabled="false"></asp:TextBox>
                    <cc1:PasswordStrength ID="tbPass_PasswordStrength" runat="server" 
                        Enabled="True" TargetControlID="tbPass" 
                        MinimumNumericCharacters="0" 
                        MinimumSymbolCharacters="0" 
                        MinimumUpperCaseCharacters="0" 
                        MinimumLowerCaseCharacters="0" 
                        PreferredPasswordLength="6" 
                        DisplayPosition="LeftSide">
                    </cc1:PasswordStrength>
                </div>
                <div class="half">
                    Confirm Password: 
                    <asp:RequiredFieldValidator ID="rfPConf" runat="server" ErrorMessage="required" 
                        ControlToValidate="tbPConf" Enabled="false" CssClass="small" Display="Dynamic"></asp:RequiredFieldValidator>
                    <asp:CompareValidator ID="cvPassword" runat="server" ControlToCompare="tbPass" 
                        ControlToValidate="tbPConf" CssClass="small" Display="Dynamic" 
                        ErrorMessage="passwords do not match" Enabled="false"></asp:CompareValidator>
                    <br />
                    <asp:TextBox ID="tbPConf" CssClass="formfield" Width="200px" 
                        runat="server" TextMode="Password" Enabled="false"></asp:TextBox>
                </div>
                <div class="clr"></div>
            </div>
            
            <div class="row">
                <asp:CheckBox ID="cbLogo" Text="Check to Change Logo" AutoPostBack="true" 
                    CausesValidation="false" runat="server" />
                <div class="half">
                    Group Logo: 
                    <asp:RequiredFieldValidator ID="rfLogo" runat="server" 
                    ErrorMessage="required" ControlToValidate="fuLogo" CssClass="small" 
                    Display="Dynamic" Enabled="false"></asp:RequiredFieldValidator><br />
                    <asp:FileUpload ID="fuLogo" CssClass="formfield" Enabled="false" 
                        runat="server" />
                </div>
                <div class="half">&nbsp;</div>
                <div class="clr"></div>
            </div>
            
        </div>
        
        <br />
        <p class="small">(* Password requires 6 characters.)</p>
        <asp:Button ID="btnUpdateGroup" runat="server" CssClass="button" Text="Update Group" />
        <br />
        <p><a href="Default.aspx">Admin Main</a></p>
    </div>
    </form>
</body>
</html>
